// components/popup/popup.js
import {getGlobalData} from './../../get-global-data';
Component({
    options: {
        styleIsolation: 'isolated'
    },
    /**
     * 组件的属性列表
     */
    properties: {
        color: {
            type: String,
            value: '#ddd'
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        scaleY: 1
    },

    /**
     * 组件的方法列表
     */
    methods: {

    },
    lifetimes: {
        ready: function () {
            const systemInfo = getGlobalData().systemInfo;
            this.setData({ scaleY: 1 / systemInfo.pixelRatio });
        }
    }
})
